package com.school.manager;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Import;

import com.school.manager.config.MyWebIntercept;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.school.manager.mapper")
@ServletComponentScan
@Import(MyWebIntercept.class)
@EnableSwagger2
public class SchoolManagerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SchoolManagerApplication.class, args);
    }

}
